<template>
  <view class="record-container flex-row justify-space-between items-center">
    <view class="flex-col">
      <span class="text-size-lg">{{ record.consultant }}</span>
      <span class="mt-4">{{ record.date }}</span>
    </view>
    <view class="flex-col mt--4">
      <span>咨询主题：{{ record.topic }}</span>
      <span class="mt-4">咨询详情：{{ record.detail }}</span>
    </view>
  </view>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

interface ConsultationRecord {
  consultant: string
  date: string
  topic: string
  detail: string
}

const record = ref<ConsultationRecord>({
  consultant: '用户',
  date: '2024-05-15',
  topic: '职业发展',
  detail: '关于未来职业规划的讨论',
})
</script>

<style lang="scss" scoped>
.record-container {
  max-width: 600px;
  padding: 20px;
  margin: auto;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;

  &:last-child {
    margin-bottom: 0;
  }
}

.text-size-lg {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #666;
}
</style>
